import request from '../utils/request';
import qs from 'qs'
import store from '../store/index'

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
// 登录
export const userLogin = data => {
    return request({
        url: '/userInfo/userLogin',
        method: 'post',
        data
    });
};
// 楼幢列表
export const buildlist = data => {
    return request({
        url: '/BuildInfoController/buildlist',
        method: 'post',
        data:{type:store.getters.type,...data}         
    });
};
// 楼幢新增
export const buildadd = data => {
    return request({
        url: '/BuildInfoController/add',
        method: 'post',
        data
    });
};
// 楼幢删除
export const builddelete = data => {
    return request({
        url: '/BuildInfoController/delete',
        method: 'post',
        data
    });
};
// 楼幢详情
export const builddetail = data => {
    return request({
        url: '/BuildInfoController/details',
        method: 'post',
        data
    });
};
// 楼幢编辑
export const buildedit = data => {
    return request({
        url: '/BuildInfoController/update',
        method: 'post',
        data
    });
};
// 使用人列表
export const syrjllist = data => {
    return request({
        url: '/JyglInfoController/syrjllist',
        method: 'post',
        data
    });
};
// 房间新增
export const roomadd = data => {
    return request({
        url: '/RoomInfoController/add',
        method: 'post',
        data
    });
};

// 房间列表
export const roomlist = data => {
    return request({
        url: '/RoomInfoController/roomlist',
        method: 'post',
        data
    });
};

// 房间删除
export const roomdelete = data => {
    return request({
        url: '/RoomInfoController/delete',
        method: 'post',
        data
    });
};

// 房间删除
export const roomdetails = data => {
    return request({
        url: '/RoomInfoController/details',
        method: 'post',
        data
    });
};
// 房屋文件列表
export const fwpiclist = data => {
    return request({
        url: '/FwtpInfoController/list',
        method: 'post',
        data
    });
};
// 房屋文件列表新增
export const fwpiclistadd = data => {
    return request({
        url: '/FwtpInfoController/add',
        method: 'post',
        data
    });
};
// 房屋文件列表删除
export const fwpiclistdel = data => {
    return request({
        url: '/FwtpInfoController/delete',
        method: 'post',
        data
    });
};
// 房间编辑
export const roomedit = data => {
    return request({
        url: '/RoomInfoController/update',
        method: 'post',
        data
    });
};

// 委托运营管理列表
export const jygllist = data => {
    return request({
        url: '/JyglInfoController/jygllist',
        method: 'post',
        data
    });
};
// 委托运营管理列表合计
export const jygllisthj = data => {
    return request({
        url: '/JyglInfoController/jygllisthj',
        method: 'post',
        data
    });
};

// 委托运营管理新增
export const jygladd = data => {
    return request({
        url: '/JyglInfoController/add',
        method: 'post',
        data
    });
};

// 委托运营管理编辑
export const jyglupdate = data => {
    return request({
        url: '/JyglInfoController/update',
        method: 'post',
        data
    });
};

// 委托运营管理详情
export const jygldetail = data => {
    return request({
        url: '/JyglInfoController/details',
        method: 'post',
        data
    });
};
// 委托运营管理删除
export const jygldelete = data => {
    return request({
        url: '/JyglInfoController/delete',
        method: 'post',
        data
    });
};
// 受托单位列表
export const stdwlist = data => {
    return request({
        url: '/StdwbuildInfoController/stdwlist',
        method: 'post',
        data
    });
};

// 受托单位详情
export const stdwdetails = data => {
    return request({
        url: '/StdwbuildInfoController/details',
        method: 'post',
        data
    });
};

// 受托单位新增
export const stdwadd = data => {
    return request({
        url: '/StdwbuildInfoController/add',
        method: 'post',
        data
    });
};

// 受托单位编辑
export const stdwupdate = data => {
    return request({
        url: '/StdwbuildInfoController/update',
        method: 'post',
        data
    });
};
// 房管员列表
export const getfgyList = data => {
    return request({
        url: '/userInfo/getfgyuser',
        method: 'post',
        data:{type:store.getters.type,...data}
    });
};
// 出租经营列表
export const signlist = data => {
    return request({
        url: '/SignInfoController/signlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 出租经营列表（新）
export const czjylist = data => {
    return request({
        url: '/JyglInfoController/czjylist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 出租经营列表（新）合计
export const czjylisthj = data => {
    return request({
        url: '/JyglInfoController/czjylisthj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 委托运营列表
export const wtdwsignlist = data => {
    return request({
        url: '/SignInfoController/wtdwsignlist',
        method: 'post',
        data
    });
};
// 委托运营列表(新)
export const wtyylist = data => {
    return request({
        url: '/JyglInfoController/wtyylist',
        method: 'post',
        data
    });
};
// 缴费租金列表
export const jfzjlist = data => {
    return request({
        url: '/ZjInfoController/jfzjlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};

// 缴费租金列表（已缴费）
export const jflist = data => {
    return request({
        url: '/JfInfoController/jflist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};

// 新订合同(新建订约)
export const signlistadd = data => {
    return request({
        url: '/SignInfoController/add',
        method: 'post',
        data
    });
};
// 新订合同(保障性租赁住房)
export const bzfsignlistadd = data => {
    return request({
        url: '/BzfSignInfoController/add',
        method: 'post',
        data
    });
};
// 缴费信息提交
export const updatezjjfinfo = data => {
    return request({
        url: '/ZjInfoController/updatezjjfinfo',
        method: 'post',
        data
    });
};
// 缴费信息提交（保障性租赁住房）
export const bzfupdatezjjfinfo = data => {
    return request({
        url: '/BzfZjInfoController/updatezjjfinfo',
        method: 'post',
        data
    });
};
// 预转已
export const yzyinfo = data => {
    return request({
        url: '/ZjInfoController/updateyzy',
        method: 'post',
        data
    });
};
// 预转已（保障性租赁住房）
export const bzfyzyinfo = data => {
    return request({
        url: '/BzfZjInfoController/updateyzy',
        method: 'post',
        data
    });
};
// 合同详情
export const signlistdetail = data => {
    return request({
        url: '/SignInfoController/details',
        method: 'post',
        data
    });
};
// 合同详情租金列表
export const zjlist = data => {
    return request({
        url: '/ZjInfoController/zjlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 租金交款详情页
export const getjfxq = data => {
    return request({
        url: `/SignInfoController/getjfxq?signid=${data}`,
        method: 'post',
    });
};

// 租金交款详情页
export const bzfgetjfxq = data => {
    return request({
        url: `/BzfSignInfoController/getjfxq?signid=${data}`,
        method: 'post',
    });
};
// 对账列表
export const dzlist = data => {
    return request({
        url: '/DzInfoController/dzlist',
        method: 'post',
        data
    });
};
// 对账列表（经理部）
export const jlbdzlist = data => {
    return request({
        url: '/JlbdzInfoController/dzlist',
        method: 'post',
        data
    });
};
// 对账列表详情页
export const dzdetail = data => {
    return request({
        url: `/DzInfoController/dzdetail?id=${data}`,
        method: 'post',
    });
};
// 对账列表详情页（经理部）
export const hbdzjflist = data => {
    return request({
        url: `/JlbdzInfoController/hbdzjflist?id=${data}`,
        method: 'post',
    });
};
// 对账列表删除
export const dzdelete = data => {
    return request({
        url: `/DzInfoController/dzdelete?id=${data}`,
        method: 'post',
    });
};
// 对账列表删除(经理部)
export const dzdeletejlb = data => {
    return request({
        url: `/JlbdzInfoController/dzdelete?id=${data}`,
        method: 'post',
    });
};
// 对账状态确认
export const dzupdate = data => {
    return request({
        url: '/DzInfoController/dzupdate',
        method: 'post',
        data
    });
};
// 对账状态确认（经理部）
export const dzupdatejlb = data => {
    return request({
        url: '/JlbdzInfoController/dzupdate',
        method: 'post',
        data
    });
};
// 对账状态确认（经理部）新
export const bzupdatejlb = data => {
    return request({
        url: '/JlbdzInfoController/bzupdate',
        method: 'post',
        data
    });
};
// 合并报账 
export const hbbzupdate = data => {
    return request({
        url: '/JlbdzInfoController/hbbzupdate',
        method: 'post',
        data
    });
};
// 财务汇总统计
export const cwhztj = data => {
    return request({
        url: '/SignInfoController/cwhztj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 财务汇总合计
export const cwhztjhj = data => {
    return request({
        url: '/SignInfoController/cwhztjhj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 楼幢列表合计
export const buildlisthj = data => {
    return request({
        url: '/BuildInfoController/buildlisthj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 委托运营列表合计
export const wtyylisthj = data => {
    return request({
        url: '/JyglInfoController/wtyylisthj',
        method: 'post',
        data
    });
};
// 订约单汇总合计
export const dydhztjhj = data => {
    return request({
        url: '/SignInfoController/dydhztjhj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 订约单汇总统计
export const dydhztj = data => {
    return request({
        url: '/SignInfoController/dydhztj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 导出财务汇总统计
export const exportcwhztj = data => {
    return request({
        url: '/SignInfoController/exportcwhztj',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 导出订约单汇总统计
export const exportdydhztj = data => {
    return request({
        url: '/SignInfoController/exportdydhztj',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 租金信息列表
export const zjinfolist = data => {
    return request({
        url: '/ZjInfoController/zjinfolist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 租金信息列表(保障性租赁住房)
export const bzfzjinfolist = data => {
    return request({
        url: '/BzfZjInfoController/zjinfolist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 编辑租金信息
export const zjinfoupdate = data => {
    return request({
        url: '/ZjInfoController/update',
        method: 'post',
        data
    });
};
// 租金信息列表(委托单位)
export const wtdwzjinfolist = data => {
    return request({
        url: '/ZjInfoController/wtdwzjinfolist',
        method: 'post',
        data
    });
};
// 缴费新增
export const jfxzadd = data => {
    return request({
        url: '/JfInfoController/add',
        method: 'post',
        data
    });
};
// 新增租金信息
export const xzzjadd = data => {
    return request({
        url: '/ZjInfoController/add',
        method: 'post',
        data
    });
};
// 编辑租金信息
export const xzzjupdate = data => {
    return request({
        url: '/ZjInfoController/update',
        method: 'post',
        data
    });
};
// 委托报表列表
export const wtbblist = data => {
    return request({
        url: '/WtbbInfoController/wtbblist',
        method: 'post',
        data
    });
};
// 委托报表新增
export const wtbblistadd = data => {
    return request({
        url: '/WtbbInfoController/add',
        method: 'post',
        data
    });
};
// 委托报表详情
export const wtbbdetails = data => {
    return request({
        url: '/WtbbInfoController/details',
        method: 'post',
        data
    });
};
// 委托报表删除
export const wtbbdelete = data => {
    return request({
        url: '/WtbbInfoController/delete',
        method: 'post',
        data
    });
};
//委托报表新增（详情）
export const getbbdetails = data => {
    return request({
        url: '/WtbbInfoController/getdetails',
        method: 'post',
        data
    });
};
// 其他合同列表
export const otherlist = data => {
    return request({
        url: '/OtherSignInfoController/list',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 其他合同详情
export const othersdetails = data => {
    return request({
        url: '/OtherSignInfoController/details',
        method: 'post',
        data
    });
};
// 其他合同列表导出
export const otherexport = data => {
    return request({
        url: '/OtherSignInfoController/exportlist',
        responseType: 'blob',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 委托单位列表
export const wtdwlist = data => {
    return request({
        url: '/WtdwInfoController/wtdwlist',
        method: 'post',
        data
    });
};
// 委托单位新增
export const wtdwlistadd = data => {
    return request({
        url: '/WtdwInfoController/add',
        method: 'post',
        data
    });
};
// 委托单位删除
export const wtdwlistdel = data => {
    return request({
        url: '/WtdwInfoController/delete',
        method: 'post',
        data
    });
};
// 委托单位详情
export const wtdwlistdetails = data => {
    return request({
        url: '/WtdwInfoController/details',
        method: 'post',
        data
    });
};

// 委托单位编辑
export const wtdwlistupdate = data => {
    return request({
        url: '/WtdwInfoController/update',
        method: 'post',
        data
    });
};
// 文件下载
export const download = params => {
    return request({
        url: '/file/download',
        responseType: 'blob',
        method: 'get',
        params
    });
};
// 文件预览
export const redownload = params => {
    return request({
        url: '/file/download',
        responseType: 'arraybuffer',
        method: 'get',
        params
    });
};
// 巡查新增
export const xcadd = data => {
    return request({
        url: '/FwxcInfoController/add',
        method: 'post',
        data
    });
};

// 巡查列表
export const xclist = data => {
    return request({
        url: '/FwxcInfoController/buildlist',
        method: 'post',
        data
    });
};
// 巡查详情
export const xcdetails = data => {
    return request({
        url: '/FwxcInfoController/details',
        method: 'post',
        data
    });
};

// 巡查删除
export const xcdelete = data => {
    return request({
        url: '/FwxcInfoController/delete',
        method: 'post',
        data
    });
};

// 待办列表
export const dbnodelist = data => {
    return request({
        url: '/ProcessnodeInfoController/dbnodelist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 数据归档列表
export const gddbnodelist = data => {
    return request({
        url: '/GdProcessnodeInfoController/dbnodelist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 事物查询列表
export const swcxcaselist = data => {
    return request({
        url: '/ProcesscaseInfoController/caselist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 我的事物查询列表
export const wdswswcxcaselist = data => {
    return request({
        url: '/ProcesscaseInfoController/wdswlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 待办列表(删除)
export const dbnodelete = data => {
    return request({
        url: '/ProcessnodeInfoController/delete',
        method: 'post',
        data
    });
};
// 待办列表(删除)-事务
export const csdbnodelete = data => {
    return request({
        url: '/ProcesscaseInfoController/delete',
        method: 'post',
        data
    });
};
// 流程启动
export const lcstart = data => {
    return request({
        url: '/ProcessnodeInfoController/start',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 流程详情编辑
export const updatetable = data => {
    return request({
        url: '/ProcessnodeInfoController/updatetable',
        method: 'post',
        data
    });
};
// 流程详情页全部信息
export const alldetails = data => {
    return request({
        url: '/ProcessnodeInfoController/alldetails',
        method: 'post',
        data
    });
};
// 数据归档详情页全部信息
export const gdalldetails = data => {
    return request({
        url: '/GdProcessnodeInfoController/alldetails',
        method: 'post',
        data
    });
};
// 委托流程文件列表
export const wtgdcaselist = data => {
    return request({
        url: '/GdProcessfileInfoController/caselist',
        method: 'post',
        data
    });
};
// 办事查询详情页全部信息
export const casedetails = data => {
    return request({
        url: '/ProcesscaseInfoController/casedetails',
        method: 'post',
        data
    });
};
// 获取委托运营协议列表
export const getwtyysignlist = data => {
    return request({
        url: '/JyglInfoController/getwtyysignlist',
        method: 'post',
        data
    });
};
// 流程文件列表
export const caselist = data => {
    return request({
        url: '/ProcessfileInfoController/caselist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 归档管理列表
export const gdcaselist = data => {
    return request({
        url: '/ProcessgdInfoController/caselist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 归档管理详情
export const gddetails = data => {
    return request({
        url: '/ProcessgdInfoController/details',
        method: 'post',
        data
    });
};
// 归档管理编辑
export const gdupdate = data => {
    return request({
        url: '/ProcessgdInfoController/update',
        method: 'post',
        data
    });
};
// 文件归档管理
export const wjgdupdate = data => {
    return request({
        url: '/ProcessgdInfoController/check',
        method: 'post',
        data
    });
};
// 流程审批
export const lccheck = data => {
    return request({
        url: '/ProcessnodeInfoController/check',
        method: 'post',
        data
    });
};
// 批量流程审批
export const checkall = data => {
    return request({
        url: '/ProcessnodeInfoController/checkall',
        method: 'post',
        data
    });
};
// 数据归档流程审批
export const gdlccheck = data => {
    return request({
        url: '/GdProcessnodeInfoController/check',
        method: 'post',
        data
    });
};
// 出租数据归档数据编辑 
export const sjgdadd = data => {
    return request({
        url: '/SignInfoController/add',
        method: 'post',
        data
    });
};
// 地图列表
export const maplist = data => {
    return request({
        url: '/JyglInfoController/maplist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 地图列表(经理部)
export const jlbmaplist = data => {
    return request({
        url: '/JyglInfoController/jlbmaplist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 历史月报详情
export const ybjldetails = data => {
    return request({
        url: '/JyybInfoController/ybjldetails',
        method: 'post',
        data
    });
};
// 经营月报新增
export const jyybadd = data => {
    return request({
        url: '/JyybInfoController/add',
        method: 'post',
        data
    });
};
// 经营月报历史记录
export const jyyblslist = data => {
    return request({
        url: '/JyybInfoController/list',
        method: 'post',
        data
    });
};
// 获取其他审批流程启动信息
export const getbuildinfo = data => {
    return request({
        url: '/BuildInfoController/getbuildinfo',
        method: 'post',
        data
    });
};
// 经营月报查询详情
export const jyybdetails = data => {
    return request({
        url: '/JyybInfoController/details',
        method: 'post',
        data
    });
};
// 房产信息统计列表
export const fcxxlist = data => {
    return request({
        url: '/JyybInfoController/fcxxtjlist',
        method: 'post',
        data
    });
};
// 根据所号获取列表
export const buildlistbysh = data => {
    return request({
        url: '/JyglInfoController/buildlistbysh',
        method: 'post',
        data:data
    });
};
// 其他信息
export const otherbuildlist = data => {
    return request({
        url: '/BuildotherInfoController/buildlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 其他信息详情
export const otherdetails = data => {
    return request({
        url: '/BuildotherInfoController/details',
        method: 'post',
        data
    });
};
// 打印详情
export const dydetails = data => {
    return request({
        url: '/ProcessnodeInfoController/dydetails',
        method: 'post',
        data
    });
};
// 我的事物打印详情
export const wdswdydetails = data => {
    return request({
        url: '/ProcessnodeInfoController/wdswdydetails',
        method: 'post',
        data
    });
};
// 根据档案编号获取信息
export const getbuilddetailbydabh = data => {
    return request({
        url: '/BuildInfoController/dadetails',
        method: 'post',
        data
    });
};
// 档案文件列表（wjlx: 文件类型 1：产权类 2：经营类 ,）
export const dawjlist = data => {
    return request({
        url: '/DawjInfoController/list',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 运营部合同汇总统计
export const allsignlist = data => {
    return request({
        url: '/SignInfoController/allsignlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 运营部合同汇总统计合计
export const allsignlisthj = data => {
    return request({
        url: '/SignInfoController/allsignlisthj',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 导出运营部合同汇总统计
export const exportallsignlist = data => {
    return request({
        url: '/SignInfoController/exportallsignlist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 档案文件备注列表（wjlx: 文件类型 1：产权类 2：经营类 ,）
export const wjbzlist = data => {
    return request({
        url: '/DawjInfoController/wjbzlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 获取楼幢数据(租赁合同)
export const getsignbybuildid = data => {
    return request({
        url: '/SignInfoController/getsignbybuildid',
        method: 'post',
        data
    });
};
// 获取楼幢数据(委托合同)
export const detailsbybuildid = data => {
    return request({
        url: '/JyglInfoController/detailsbybuildid',
        method: 'post',
        data
    });
};
// 收支录入列表
export const szlrlist = data => {
    return request({
        url: '/SzInfoController/list',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 收支录入新增
export const szlradd = data => {
    return request({
        url: '/SzInfoController/add',
        method: 'post',
        data
    });
};
// 收支确认列表
export const szqrlist = data => {
    return request({
        url: '/SzInfoController/szqrlist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 收支确认详情
export const szqrdetails = data => {
    return request({
        url: '/SzInfoController/details',
        method: 'post',
        data
    });
};
// 收支确认编辑
export const szqrupdate = data => {
    return request({
        url: '/SzInfoController/update',
        method: 'post',
        data
    });
};

// 待办数量
export const dbnum = data => {
    return request({
        url: `/CheckInfoController/dbnum?userid=${data}`,
        method: 'post'
    });
};
// 预转已待办数量
export const yzydbnum = data => {
    return request({
        url: `/CheckInfoController/yzydbnum?userid=${data}`,
        method: 'post'
    });
};
// 收支确认待办数量
export const szqrdbnum = data => {
    return request({
        url: `/CheckInfoController/szqrdbnum?userid=${data}`,
        method: 'post'
    });
};
// 用户列表
export const userList = data => {
    return request({
        url: '/user/userList',
        method: 'post',
        data
    });
};
// 修改用户
export const updateUserById = data => {
    return request({
        url: '/user/updateUserById',
        method: 'post',
        data
    });
};
//修改密码
export const updatePassword = data => {
    return request({
        url: '/userInfo/updatePassword',
        method: 'post',
        data
    });
};
// 用户详情
export const findUserById = params => {
    return request({
        url: '/user/findUserById',
        method: 'get',
        params
    });
};
// 重置密码
export const rePassword = data => {
    return request({
        url: '/user/rePassword',
        method: 'post',
        data
    });
};
// 新增用户
export const useradd = data => {
    return request({
        url: '/user/add',
        method: 'post',
        data
    });
};
// 委托信息(根据buildid)
export const listbybuildid = data => {
    return request({
        url: '/JyglInfoController/listbybuildid',
        method: 'post',
        data
    });
};
// 租赁信息(根据buildid)
export const htlistbybuildid = data => {
    return request({
        url: '/SignInfoController/listbybuildid',
        method: 'post',
        data
    });
};
// 获取存在增收合同列表
export const getzssignlist = data => {
    return request({
        url: '/SignInfoController/getzssignlist',
        method: 'post',
        data
    });
};
// 增转已
export const updatezzy = data => {
    return request({
        url: '/ZjInfoController/updatezzy',
        method: 'post',
        data
    });
};
// 档案变更
export const gdbgstart = data => {
    return request({
        url: '/GdProcessnodeInfoController/start',
        method: 'post',
        data
    });
};

// 档案变更(上传文件)
export const gdbgfileaddt = data => {
    return request({
        url: '/DawjInfoController/add',
        method: 'post',
        data
    });
};
// 档案变更(删除文件)
export const gdbgfiledel = data => {
    return request({
        url: '/DawjInfoController/delete',
        method: 'post',
        data
    });
};

// 档案备案(备案list)
export const bacaselist = data => {
    return request({
        url: '/GdProcesscaseInfoController/caselist',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
// 档案备案(备案详情)
export const bacasedetails = data => {
    return request({
        url: '/GdProcesscaseInfoController/casedetails',
        method: 'post',
        data
    });
};
// 巡查任务

// 新增巡查任务
export const inspectionTaskadd = data => {
    return request({
        url: '/inspectionTask/add',
        method: 'post',
        data
    });
};
// 巡查任务删除
export const inspectionTaskdelete = params => {
    return request({
        url: '/inspectionTask/delete',
        method: 'get',
        params
    });
};
// 巡查任务后台详情
export const findInspectionTaskById = params => {
    return request({
        url: '/inspectionTask/findInspectionTaskById',
        method: 'get',
        params
    });
};
// 巡查任务列表
export const ipageInspectionTask = data => {
    return request({
        url: '/inspectionTask/ipageInspectionTask',
        method: 'post',
        data
    });
};
// 修改巡查任务
export const upadteInspectionTask = data => {
    return request({
        url: '/inspectionTask/upadteInspectionTask',
        method: 'post',
        data
    });
};
// 导出收支列表
export const exportSzlist = data => {
    return request({
        url: '/SzInfoController/exportSzlist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 导出楼幢列表
export const exportBuildlist = data => {
    return request({
        url: '/BuildInfoController/exportBuildlist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};

//导出经营月报
export const exportjyyb = data => {
    return request({
        url: '/JyybInfoController/exportjyyb',
        method: 'post',
        responseType: 'blob',
        data
    });
};
//导出房产信息统计表
export const exportfcxxtj = data => {
    return request({
        url: '/JyybInfoController/exportfcxxtj',
        method: 'post',
        responseType: 'blob',
        data
    });
};
// 导出办公自用列表
export const exportjygllist = data => {
    return request({
        url: '/JyglInfoController/exportjygllist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};

// 导出委托运营列表
export const exportwtyylist = data => {
    return request({
        url: '/JyglInfoController/exportwtyylist',
        method: 'post',
        responseType: 'blob',
        data
    });
};

// 导出出租经营列表
export const exportczjylist = data => {
    return request({
        url: '/JyglInfoController/exportczjylist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};

// 导出交款列表
export const exportzjinfolist = data => {
    return request({
        url: '/ZjInfoController/exportzjinfolist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 导出交款列表(保障性租金住房)
export const bzfexportzjinfolist = data => {
    return request({
        url: '/BzfZjInfoController/exportzjinfolist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};

// 导出对账列表
export const exportdzlist = data => {
    return request({
        url: '/DzInfoController/exportdzlist',
        method: 'post',
        responseType: 'blob',
        data
    });
};
// 导出对账列表（经理部）
export const exportdzlistjlb = data => {
    return request({
        url: '/JlbdzInfoController/exportdzlist',
        method: 'post',
        responseType: 'blob',
        data
    });
};
// 导出事务列表
export const exportcaselist = data => {
    return request({
        url: '/ProcesscaseInfoController/exportcaselist',
        method: 'post',
        responseType: 'blob',
        data:{type:store.getters.type,...data} 
    });
};
// 项目接口

// 新建项目
export const projectadd = data => {
    return request({
        url: '/project/add',
        method: 'post',
        data
    });
};
// 删除项目
export const projectdelete = params => {
    return request({
        url: '/project/delete',
        method: 'get',
        params
    });
};
// 项目详情
export const findProjectById = params => {
    return request({
        url: '/project/findProjectById',
        method: 'get',
        params
    });
};
// 项目列表
export const projectList = data => {
    return request({
        url: '/project/projectList',
        method: 'post',
        data
    });
};
// 编辑项目
export const projectupdate = data => {
    return request({
        url: '/project/update',
        method: 'post',
        data
    });
};

// 评分表接口
// 新增
export const scoreTableadd = data => {
    return request({
        url: '/scoreTable/add',
        method: 'post',
        data
    });
};
// 详情
export const findOneById = params => {
    return request({
        url: '/scoreTable/findOneById',
        method: 'get',
        params
    });
};
// 列表
export const ipageScoreTable = data => {
    return request({
        url: '/scoreTable/ipageScoreTable',
        method: 'post',
        data
    });
};
// 修改
export const scoreTableupdate = data => {
    return request({
        url: '/scoreTable/update',
        method: 'post',
        data
    });
};
// 新获取楼幢数据(委托合同)
export const newdetailsbybuildid = data => {
    return request({
        url: '/StdwbuildInfoController/detailsbybuildid',
        method: 'post',
        data
    });
};

// 检查表接口
// 新增检查表
export const patroladd = data => {
    return request({
        url: '/patrol/add',
        method: 'post',
        data
    });
};
// 检查详情
export const checkfindOneById = params => {
    return request({
        url: '/patrol/findOneById',
        method: 'get',
        params
    });
};
// 检查列表
export const ipagePatrol = data => {
    return request({
        url: '/patrol/ipagePatrol',
        method: 'post',
        data
    });
};
// 修改检查表
export const updatePatrol = data => {
    return request({
        url: '/patrol/updatePatrol',
        method: 'post',
        data
    });
};


// 知识库接口
// 新建
export const fileLibraryadd = data => {
    return request({
        url: '/fileLibrary/add',
        method: 'post',
        data
    });
};
// 删除
export const fileLibrarydelete = data => {
    return request({
        url: '/fileLibrary/delete',
        method: 'post',
        data
    });
};
// 知识库列表
export const fileLibrarylist = data => {
    return request({
        url: '/fileLibrary/fileLibrarylist',
        method: 'post',
        data
    });
};

// 组织管理添加
export const userGroupadd = data => {
    return request({
        url: '/userGroup/add',
        method: 'post',
        data
    });
};
// 组织管理下拉列表
export const findAllList = data => {
    return request({
        url: '/userGroup/findAllList',
        method: 'post',
        data
    });
};
// 组织管理列表
export const ipageFindAll = data => {
    return request({
        url: '/userGroup/ipageFindAll',
        method: 'post',
        data
    });
};
// 组织管理更新
export const userGroupupdate = data => {
    return request({
        url: '/userGroup/update',
        method: 'post',
        data
    });
};
// 组织管理详情
export const userGroupfindOneById = params => {
    return request({
        url: '/userGroup/findOneById',
        method: 'get',
        params
    });
};

// 质量检查模板列表pc
export const ipageQualityTemplate = data => {
    return request({
        url: '/qualityTemplate/ipageQualityTemplate',
        method: 'post',
        data
    });
};
// 新增
export const qualityTemplateadd = data => {
    return request({
        url: '/qualityTemplate/add',
        method: 'post',
        data
    });
};
// 修改
export const updateQualityTemplate = data => {
    return request({
        url: '/qualityTemplate/updateQualityTemplate',
        method: 'post',
        data
    });
};
// 质量检查详情
export const findQualityTemplateInfo = params => {
    return request({
        url: '/qualityTemplate/findQualityTemplateInfo',
        method: 'get',
        params
    });
};

// 质量检查详情
export const ipageSpotCheck = data => {
    return request({
        url: '/spotCheck/ipageSpotCheck',
        method: 'post',
        data
    });
};

// 专项检查列表
export const IpageSpecializedCheck = data => {
    return request({
        url: '/specializedCheck/IpageSpecializedCheck',
        method: 'post',
        data
    });
};

// 抽查详情
export const findSpotCheckInfoById = params => {
    return request({
        url: '/spotCheck/findSpotCheckInfoById',
        method: 'get',
        params
    });
};
// 日周月详情
export const findRectifyInfo = params => {
    return request({
        url: '/inspectionTask/findRectifyInfo',
        method: 'get',
        params
    });
};
// 专项检查
export const findSpecializedCheckInfoById = params => {
    return request({
        url: '/specializedCheck/findSpecializedCheckInfoById',
        method: 'get',
        params
    });
};
// 质量检测详情
export const findInfoById = params => {
    return request({
        url: '/qualityIssuesTask/findInfoById',
        method: 'get',
        params
    });
};
// 质量检测列表
export const ipageQualityIssuesTask = data => {
    return request({
        url: '/qualityIssuesTask/ipageQualityIssuesTask',
        method: 'post',
        data
    });
};

// 导出工单
export const fileLibrarydownload = params => {
    return request({
        url: '/fileLibrary/download',
        method: 'get',
        params
    });
};
// 获取当前有效合同列表
export const getsignlist = data => {
    return request({
        url: '/SignInfoController/getsignlist',
        method: 'post',
        data
    });
};
// 获取水表合同列表
export const getsbsignlist = data => {
    return request({
        url: '/SignInfoController/list',
        method: 'post',
        data:{type:store.getters.type,...data} 
    });
};
//水表附件上传 
export const sbfjadd = data => {
    return request({
        url: '/SbfjInfoController/add',
        method: 'post',
        data
    });
};
//水表附件删除
export const sbfjdelete = data => {
    return request({
        url: '/SbfjInfoController/delete',
        method: 'post',
        data
    });
};
//水表附件列表
export const sbfjlist = data => {
    return request({
        url: '/SbfjInfoController/list',
        method: 'post',
        data:data
    });
};
// 编辑当前有效合同列表
export const getsignlistupdate = data => {
    return request({
        url: '/SignInfoController/update',
        method: 'post',
        data
    });
};
// 用户列表
export const userdropDown = data => {
    return request({
        url: '/user/dropDown',
        method: 'post',
        data
    });
};
// 单位产新建
export const dwcadd = data => {
    return request({
        url: '/DwcInfoController/add',
        method: 'post',
        data
    });
};
// 统计分析
// 巡查,质量统计
export const CheckStatisticsProblem = params => {
    return request({
        url: '/statistics/CheckStatisticsProblem',
        method: 'get',
        params
    });
};
// 巡查，质量,具体问题统计
export const StatisticsProblemInfo = params => {
    return request({
        url: '/statistics/StatisticsProblemInfo',
        method: 'get',
        params
    });
};
// 整改超时数量
export const overnum = data => {
    return request({
        url: '/statistics/overnum',
        method: 'post',
        data
    });
};
// 项目问题数量
export const problemnum = data => {
    return request({
        url: '/statistics/problemnum',
        method: 'post',
        data
    });
};
// 评分统计
export const scorestatistics = params => {
    return request({
        url: '/statistics/scorestatistics',
        method: 'get',
        params
    });
};
// 评分列表app
export const ipageScoreTableapp = data => {
    return request({
        url: '/scoreTableData/ipageScoreTable',
        method: 'post',
        data
    });
};